&lt;embed wmode="opaque" src="<%="#{request.protocol}#{request.host_with_port}#{swf.file.url}"%>" width="auto" height="auto"&gt;&lt;/embed&gt;